<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page import="com.lukebang.util.RSAUtils"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.security.interfaces.*"%>
<c:set var="ctxPath" value="${pageContext.request.contextPath}"
	scope="application" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="">
<meta name="author" content="ThemeBucket">
<link rel="shortcut icon" href="#" type="image/png">
<link rel="shortcut icon" type="image/x-icon"
	href="${ctxPath }/static/images/lukebang320.ico" media="screen" />
<link rel="icon" href="${ctxPath }/static/images/lukebang320.ico"
	type="image/x-icon" />
<link rel="bookmark" href="${ctxPath }/static/images/lukebang320.ico"
	type="image/x-icon" />
<link
	href="${ctxPath }/static/js/bootstrap-touchspin/bootstrap.touchspin.min.css"
	rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css"
	href="${ctxPath }/static/js/bootstrap-timepicker/css/timepicker.css" />
<link rel="stylesheet" type="text/css"
	href="${ctxPath }/static/js/bootstrap-datetimepicker2/css/datetimepicker-custom.css" />
<link href="${ctxPath}/static/js/bootstrap-table/bootstrap-table.css"
	rel="stylesheet" />
<title>新建安装订单</title>

<link href="${ctxPath}/static/css/style.css" rel="stylesheet">
<link href="${ctxPath}/static/css/jquery.stepy.css" rel="stylesheet">
<link href="${ctxPath}/static/css/style-responsive.css" rel="stylesheet">
<link href="${ctxPath}/static/js/bootstrap-fileinput/fileinput.min.css"
	rel="stylesheet" type="text/css" />
<style type="text/css">
.validateFontSize {
	font-size: 12px;
}
</style>
  <%
	HashMap<String, Object> map = RSAUtils.getKeys();
	//生成公钥和私钥    
	RSAPublicKey publicKey = (RSAPublicKey) map.get("public");
	RSAPrivateKey privateKey = (RSAPrivateKey) map.get("private");
	session.setAttribute("privateKey", privateKey);//私钥保存在session中，用于解密  
	//公钥信息保存在页面，用于加密  
	String publicKeyExponent = publicKey.getPublicExponent().toString(16); //公钥指数   
	String publicKeyModulus = publicKey.getModulus().toString(16); //模    
	request.setAttribute("publicKeyExponent", publicKeyExponent);
	request.setAttribute("publicKeyModulus", publicKeyModulus);
%>
</head>
<body class="sticky-header"
	onload="indexmenu('${oneMenu}','${twoMenu}');">
	<%@ include file="../index/index.jsp"%>
	<section>
		<!-- main content start-->
		<div class="main-content">
			<div class="page-heading">
				<h3>鹿客帮下单</h3>
				<ul class="breadcrumb">
					<li><a>任务管理</a></li>
					<li class="active">下安装单</li>
				</ul>
			</div>
			<!--这里是写一些内容的  -->
			<h3>&nbsp;&nbsp;&nbsp;下安装订单:</h3>
			<!--body wrapper start-->
			<div class="wrapper">
				<div class="row">
					<div class="col-md-12">
						<div class="box-widget">
							<div class="widget-head clearfix">
								<div id="top_tabby" class="block-tabby pull-left"></div>
							</div>
							<div class="widget-container">
								<div class="widget-block">
									<div class="widget-content box-padding">
										<form id="stepy_form"
											class=" form-horizontal left-align form-well"
											onsubmit="return false">
											<input type="hidden" name="fakeIndentID">
											<fieldset title="订单信息">
												<legend>添加基本信息</legend>
												<div class="form-group">
													<label class="col-md-2 col-sm-2 control-label">顾客姓名：</label>
													<div class="col-md-4">
														<input type="text" style="display: none" /> <input
															type="text" placeholder="顾客姓名" class="form-control"
															name="name">
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 col-sm-2 control-label">电话：</label>
													<div class="col-md-4">
														<input type="text" placeholder="电话" class="form-control"
															onkeyup="this.value=this.value.replace(/\D/g,'')"
															maxlength="11" name="phone">
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 col-sm-2 control-label">安装时间：</label>
													<div class="col-md-4">
														<input size="16" type="text" readonly
															class="form_datetime-meridian form-control"
															name="subscribeTime">
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 col-sm-2 control-label">地址：</label>
													<div>
														<div class="col-sm-1">
															<select class="form-control" name="province"
																id="Province" style="width: 129px;">
																<option value="999999">省</option>
															</select>
														</div>
														<div class="col-sm-1">
															<select class="form-control" name="city" id="City"
																style="width: 129px;">
																<option value="999999">市</option>
															</select>
														</div>
														<div class="col-sm-1">
															<select class="form-control" name="country"
																id="countrySelect" style="width: 129px;">
																<option value="999999">区</option>
															</select>
														</div>
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 col-sm-2 control-label">详细地址：</label>
													<div class="col-md-4">
														<textarea name="installAddress" placeholder="详细地址"
															rows="2" class="form-control"></textarea>
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 col-sm-2 control-label">安装备注：</label>
													<div class="col-md-4">
														<textarea class="form-control" name="remark" rows="2" placeholder="安装备注"></textarea>
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 col-sm-2 control-label">是否需要取货：</label>
													<div class="radio-list">
														&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="isNeedTakeGoods"
															onchange="changeNeedPickUpForIndent(this)" value="0"
															checked style="margin: 9px 0px 0;" id="dontNeedTakeGoods"> <label for="dontNeedTakeGoods" style="display: inline;">不需要取货 </label>&nbsp;&nbsp;&nbsp; <input
															type="radio" name="isNeedTakeGoods" value="1"
															onchange="changeNeedPickUpForIndent(this)" id="needTakeGoods" style="margin:4px 3px 0;"><label for="needTakeGoods" style="display: inline;">需要取货</label>&nbsp;&nbsp;<input
															id="input_needPickupPrice" type="text" readonly
															style="width: 100px; background: transparent; border: 0">
													</div>
												</div>
												<div id="pickupDetailDIV" style="display: none">
													<div class="form-group">
														<label class="col-md-2 col-sm-2 control-label">联系人手机：</label>
														<div class="col-md-4">
															<input type="text" placeholder="联系人手机"
																onkeyup="this.value=this.value.replace(/\D/g,'')"
																maxlength="11" class="form-control" name="pickupPhone"
																id="pickUpPhoneTxt">
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 col-sm-2 control-label">取货地址：</label>
														<div>
															<div class="col-sm-1">
																<select class="form-control" name="pickupProvince"
																	id="pickupProvince" style="width: 129px;">
																	<option value="999999">省</option>
																</select>
															</div>
															<div class="col-sm-1">
																<select class="form-control" name="pickupCity"
																	id="pickupCity" style="width: 129px;">
																	<option value="999999">市</option>
																</select>
															</div>
															<div class="col-sm-1">
																<select class="form-control" name="pickupCountry"
																	id="pickupCountrySelect" style="width: 129px;">
																	<option value="999999">区</option>
																</select>
															</div>
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 col-sm-2 control-label">取货详细地址：</label>
														<div class="col-md-4">
															<textarea name="pickAddress" placeholder="详细地址" rows="2"
																class="form-control"></textarea>
														</div>
													</div>
												</div>
												<!-- 	<div class="form-group">
													<label class="col-md-2 col-sm-2 control-label">基本安装费：</label>
													<div class="col-md-4">
														<input type="text" placeholder="安装费" readonly
															class="form-control"
															style="width: 100px; background: transparent; border: 0"
															id="txt_basicInstallPrice">
													</div>
												</div> -->
											</fieldset>
											<fieldset title="窗帘信息">
												<legend>添加窗帘信息</legend>
												<div>
													<div id="toolbar" class="btn-group">
														<button type="button"
															onclick="javascript:$('#addCurtainModal').modal('show');"
															class="btn btn-primary fa fa-plus">添加窗帘</button>
													</div>
													<div class="col-md-offset-0 col-md-10">
														<table id="indentGoods_Table">
														</table>
													</div>
												</div>
											</fieldset>
											<button type="button" onclick="makeInstallIndent(this)"
												style="width: 90px" class="finish btn btn-info btn-extend">生成订单</button>
										</form>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	
	<!-- 页面集合 -->
	<jsp:include page="addSample.jsp"></jsp:include>
	<jsp:include page="finishMap.jsp"></jsp:include>
	<jsp:include page="cloth.jsp"></jsp:include>
	<jsp:include page="yarn.jsp"></jsp:include>
	<jsp:include page="head.jsp"></jsp:include>
	<jsp:include page="../taskList/payMoney.jsp">
		<jsp:param value="1" name="type"/>
	</jsp:include>
	<jsp:include page="../taskList/password.jsp"></jsp:include>	
	<script src="${ctxPath}/static/js/security/security.js"></script>
	<script type="text/javascript"
		src="${ctxPath }/static/js/bootstrap-datetimepicker2/js/bootstrap-datetimepicker.js"></script>
	<script
		src="${ctxPath }/static/js/bootstrap-touchspin/bootstrap.touchspin.min.js"
		type="text/javascript"></script>
	<script src="${ctxPath}/static/js/jquery.validate.min.js"></script>
	<script src="${ctxPath}/static/js/jquery.stepy.js"></script>
	<script src="${ctxPath}/static/js/jquery.nicescroll.js"></script>
	<!-- tables插件的引用 -->
	<script src="${ctxPath}/static/js/bootstrap-table/bootstrap-table.js"></script>
	<script
		src="${ctxPath}/static/js/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
	<script src="${ctxPath}/static/js/bootstrap-fileinput/fileinput.min.js"
		type="text/javascript"></script>
	<script src="${ctxPath}/static/js/bootstrap-fileinput/zh.js"
		type="text/javascript"></script>
	<!--pickers initialization-->
	<script src="${ctxPath }/static/js/pickers-init.js"></script>
	<script src="${ctxPath}/static/js/custom/newTask/addInstall.js"></script>
	<script type="text/javascript">
	</script>
</body>
</html>
